package com.jams.goodox.activity.qa.entity;

import com.jams.goodox.net.BaseEntity;

import java.io.Serializable;

/**
 * Created by HP on 2018/5/10.
 *
 * 问题列表 item
 * 问题id
    问题标题
    用户名
    问答状态(0未回答，1已回答，2已查看答案)
    创建时间
 */

public class Question  implements Serializable {

    private int id;
    private String title;
    private String nickName;
    private String individualitySign = "-- --";
    private int queState;
    private long createTime;
    private String imgPath;

    private String descr;
    private int type;
    private boolean isAnswer;

    public Question(int type, boolean isAnswer) {
        this.type = type;
        this.isAnswer = isAnswer;
    }

    public Question() {
    }

    public boolean isAnswer() {
        return isAnswer;
    }

    public void setAnswer(boolean answer) {
        isAnswer = answer;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", nickName='" + nickName + '\'' +
                ", individualitySign='" + individualitySign + '\'' +
                ", queState=" + queState +
                ", createTime='" + createTime + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", type=" + type +
                ", isAnswer=" + isAnswer +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getIndividualitySign() {
        return individualitySign;
    }

    public void setIndividualitySign(String individualitySign) {
        this.individualitySign = individualitySign;
    }

    public int getQueState() {
        return queState;
    }

    public void setQueState(int queState) {
        this.queState = queState;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }
}
